<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="template.xhtml">

	<h:form name="cadastrarmaterial">
		<h:messages id="messages" autoUpdate="true" closable="true" />

		<h:panelGrid columns="2">
			<f:facet name="header">
				Transferência Bancária
			</f:facet>

			<h:outputText value="Conta de Origem: " />
			<h:outputText value="#{transferenciaMB.contaOrigem}" />

			<h:outputText value="Conta de Destino: " for="destino" />
			<h:inputText value="#{transferenciaMB.contaDestino}" required="true"
				requiredMessage="Conta de Destino - Campo Obrigatório" id="destino" />

			<h:outputText value="Valor:" for="valor" />
			<h:inputText value="#{transferenciaMB.valor}"
				required="true" requiredMessage="Valor - Campo Obrigatório" id="valor" />

		</h:panelGrid>
		<h:commandButton action="#{transferenciaMB.cancelar}" value=" Cancelar " />
		<h:commandButton action="#{transferenciaMB.transferir}" value=" Transferir " />
	</h:form>
	

</ui:composition>
</html>